package com.eureka.client.runner;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


//排除自动注入数据源的配置：取消数据库配置
@SpringBootApplication(scanBasePackages = {"com.eureka.client"}, exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
public class SpringBootConfigApplication {
    public static void main(String[] args) {
        new SpringApplicationBuilder(SpringBootConfigApplication.class).web(true).run(args);
    }
}
